<style>

.coefficient span.error {
    position: absolute !important;
    left:150px;
}

#coefficientsTBody tr td div {
    height: 29px;
    padding-top: 3px;
}

.quantityError{
    border-color:#e9573f;
}
 
</style>
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<form method="post" action="${rc.getContextPath()}/manage/wcStandardCapacity/saveWCStandardCapacity" class="pageForm required-validate" onsubmit="return coefficientJs._tsubmit(this);">
    <div class="pageContent">
        <div class="pageFormContent"  >
        <input type="hidden" name="navTabId" value="${navTabId!''}">
        <input type="hidden" name="id" value="<#if (wcStandardCapacity.workCenterCode)??>${wcStandardCapacity.workCenterCode!''}</#if>">
        <fieldSet>
            <dl>
                <dt><@label key="workCenter.C,colon">工作中心：</@label></dt>
                <dd>
                    <input type="text" id="workCenterGrp.workCenterCode" name="workCenterCode" postField="workCenterCode" suggestFields="workCenterCode,workCenterText" 
                    suggestUrl="${rc.getContextPath()}/manage/wcStandardCapacity/selectUnusedWorkCenter"  value="${wcStandardCapacity.workCenterCode!''}"
                    remote="${rc.getContextPath()}/manage/wcStandardCapacity/checkUnusedWorkCenter"  lookupGroup="workCenterGrp" class="required textInput" readonly="readonly"/>
                </dd>
            </dl>
            <dl>
                <dt><@label key="description.C,colon">描述：</@label></dt>
                <dd>
                    <input type="text" id="workCenterGrp.workCenterText" name="workCenterText" value="${wcStandardCapacity.workCenterText!''}" readonly="readonly"/>
                </dd>
            </dl>
            <dl>
                <dt><@label key="standardCapacity.C,colon">标准产能</@label></dt>
                <dd>
                    <input type="text" name="standardCapacity" value="${wcStandardCapacity.standardCapacity!''}" readonly="readonly" class="required digits"/>
                </dd>
            </dl>
            <dl>
                <dt><@label key="standardHours.C,colon">标准用时(小时)</@label></dt>
                <dd>
                    <input type="text" name="standardHours" value="${wcStandardCapacity.standardHours!''}" readonly="readonly" class="required digits"/>
                </dd>
            </dl>
        </fieldSet>
        <div class="panel" style="margin:0 0 5px 0;">
                <h1><@label key="capacityCoefficient.C">产能系数</@label></h1>
                    <div>
                        <table class="table border canopration" width="100%" layoutH="270">
                            <thead>
                                <tr>
                                    <th width="100"><@label key="lowerQuantity.C">下限量</@label></th>
                                    <th width="100"><@label key="upperQuantity.C">上限量</@label></th>
                                    <th width="100"><@label key="capacityCoefficient.C">产能系数</@label></th>
                                </tr>
                            </thead>
                            <tbody id="coefficientsTBody">
                            <#if wcStandardCapacity.capacityCoefficients?? && (wcStandardCapacity.capacityCoefficients?size>0)>
                                <#list wcStandardCapacity.capacityCoefficients as capacityCoefficient>
                                    <tr>
                                    <td width="100">${capacityCoefficient.lowerQuantity!''}</td>
                                    <td width="100">${capacityCoefficient.upperQuantity!''}</td>
                                    <td width="100" class="coefficient">${capacityCoefficient.coefficient!''}</td>
                                </tr>
                                </#list>
                            </#if>
                            </tbody>
                        </table>
                    </div>
            </div>
    </div>
    <#if (wcStandardCapacity.workCenterCode)??>
            <#assign createInfo=wcStandardCapacity>
            <#include "/common/createInfo.html">
    </#if>
    <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                    <@label key="close.B">关闭</@label>
                            </button>
                        </div>
                    </div>
                </li>
            </ul>
    </div>
    
